import { TResponse } from '@/typings'
import { get } from '..'

const prefixUrl = '/sys/roleMenu/'

export interface IMenusRole {
  menus: Array<string>;
  roleId: string;
}

export const getMenusByRole = (roleId: string): Promise<TResponse<IMenusRole>> => {
  return get(`${prefixUrl}getMenusByRole`, { roleId })
}
